#!/bin/bash

pwd=${PWD}
#x264
cd ${pwd}/3rd_party/x264
./x264_x64_simple_build.sh x64

#ffmpeg
cd ${pwd}/3rd_party/ffmpeg
./build_ffmpeg_x86.sh

#libyuv
cd ${pwd}/3rd_party/libyuv
make clean -f linux.mk
make -f linux.mk


 cd ${pwd}/src
 mkdir build
 cd build
 cmake ..
 make -j8

 cd ${pwd}


